<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<title>后台管理</title>
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}"></script>
<script>
var weburl="{yun:}$config.sy_weburl{/yun}"
function audall(status){
	var codewebarr="";
	$(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
		if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
	});
	if(codewebarr==""){
		parent.layer.msg("您还未选择任何信息！",2,8);return false;
	}else{
		$("input[name=pid]").val(codewebarr);
		$("#alertcontent").val('');
		$("input[name=status]").attr("checked",false);
		add_class('批量审核','390','240','#status_div','');
	}
}
function checkstate(id){
    var state = $("#change"+id).val();
    if( state == 1 ){
        state = 2;
    }else{
        state = 1;
    }
    $.post("index.php?m=admin_company_job&c=checkstate",{id:id,state:state},function(data){
		if(data==1){
			if(state=='1'){
				$('#state'+id).html('<span class="admin_com_noAudited">已下架</span>');
                $("#change"+id).val(1);
			}else{
				$('#state'+id).html('<span class="admin_com_Audited">发布中</span>');
                $("#change"+id).val(2);
			}
		}
	});

}
 
function audall3(status){
	var codewebarr="";
	$(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
		if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
	});
	if(codewebarr==""){
		parent.layer.msg("您还未选择任何信息！",2,8);	return false;
	}else{
		$("input[name=jobid]").val(codewebarr);
		add_class('批量修改职位类别','320','280','#infobox4','');
	}
}
$(function(){
	$(".status").click(function(){
		var id=$(this).attr("pid");
		$("input[name=pid]").val($(this).attr("pid"));
 		var status=$(this).attr("status");
		$("#status"+status).attr("checked",true);
		
		layui.use(['form'],function(){
		var form = layui.form;
		form.render();
		});

		var pytoken=$("#pytoken").val();
		$.post("index.php?m=admin_company_job&c=lockinfo",{id:id,pytoken:pytoken},function(msg){
			$("#alertcontent").val(msg);
			add_class('职位审核','390','240','#status_div','');
		});
	});

	
	$(".xuanshang").click(function(){
 		$("input[name='pid']").val($(this).attr("pid"));
		$("input[name=eid]").val($(this).attr("eid"));
		var xstime=$(this).attr("xstime"); 
		$("input[name='xuanshang']").val('');
		$("input[name='xsdays']").val('');
		$(".xsdiv").hide();
		if(xstime){
			$(".xsdate").html(xstime);
			$(".xsdiv").show();
			add_class('职位置顶','300','250','#infobox3','');
		}else{
			add_class('职位置顶','300','200','#infobox3','');
		}
		
	});

	$(".urgent").click(function(){
		$("input[name=pid]").val($(this).attr("pid"));
		$("input[name=eid]").val($(this).attr("eid"));
		var eurgent=$(this).attr("eurgent"); 

		if($(this).attr("tid")>0){
			$("#surplus_urgent").html($(this).attr("tid")+"天+");
			$("#surplus_urgent").show();
		}
		$(".eurgentdiv").hide();
		if(eurgent){
			$(".eurgent").html(eurgent);
			$(".eurgentdiv").show();
			add_class('紧急招聘','290','250','#infobox5','');
		}else{
			add_class('紧急招聘','290','220','#infobox5','');
		} 
	});
	$(".rec").click(function(){
		$("input[name=pid]").val($(this).attr("pid"));
		$("input[name=eid]").val($(this).attr("eid"));
		var edate=$(this).attr("edate"); 
		if($(this).attr("tid")>0){
			$("#surplus_recommend").html($(this).attr("tid")+"天+");
			$("#surplus_recommend").show();
		}
		$(".edatediv").hide();
		if(edate){
			$(".edate").html(edate);
			$(".edatediv").show();
			add_class('职位推荐','290','250','#infobox6','');
		}else{
			add_class('职位推荐','290','220','#infobox6','');
		} 
	});
});

$(document).ready(function(){
	$(".job_name_all").hover(function(){
		var job_name=$(this).attr('v');
		if($.trim(job_name)!=''){
			layer.tips(job_name, this, {guide: 1, style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC']}); 
			$(".xubox_layer").addClass("xubox_tips_border");
		} 
	},function(){
		var job_name=$(this).attr('v'); 
		if($.trim(job_name)!=''){
			layer.closeAll('tips');
		} 
	});
});

function Refresh(){//批量刷新
	var codewebarr="";
	$(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
		if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
	});
	if(codewebarr==""){
		parent.layer.msg("请选择要刷新的职位！",2,8);return false;
	}else{
		$.post("index.php?m=admin_company_job&c=refresh",{ids:codewebarr,pytoken:$('#pytoken').val()},function(data){
			parent.layer.msg("刷新成功！",2,9);
		})
	}
}
function recommend(){//批量推荐
	var codearr="";
	$(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
		if(codearr==""){codearr=$(this).val();}else{codearr=codearr+","+$(this).val();}
	});
	if(codearr==""){
	    parent.layer.msg("请选择要推荐的职位！",2,8);return false;
	}else{
	    $("input[name=codearr]").val(codearr);
		$(".edatediv").hide();
	    add_class('职位批量推荐','290','220','#infobox6','');
	}
}
function urgent(){//批量紧急
    var codeugent="";
	$(".check_all:checked").each(function(){
	    if(codeugent==''){codeugent=$(this).val();}else{codeugent=codeugent+","+$(this).val();}
	});
	if(codeugent==""){
	    parent.layer.msg("请选择要紧急的职位！",2,8);return false;
	}else{
	    $("input[name=codeugent]").val(codeugent);
		$(".eurgentdiv").hide();
		add_class('职位批量紧急','290','220','#infobox5','');
	}
}
function Export(){
	var codewebarr="";
	$(".check_all:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
		if(codewebarr==""){codewebarr=$(this).val();}else{codewebarr=codewebarr+","+$(this).val();}
	});
	if(codewebarr==""){
        if(confirm('你确定要导出全部数据？')){
            $("input[name=pid]").val(0);
            setTimeout(function(){$('.myform1').submit()},0);
        }else{
            return false;
        }
	}else{
		$("input[name=pid]").val(codewebarr);
        setTimeout(function(){$('.myform1').submit()},0);
	}
}
function check_xls(){
	var type="";
	$(".type:checked").each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
		if(type==""){type=$(this).val();}else{type=type+","+$(this).val();}
	});
	if(type==""){
		parent.layer.msg("请选择导出字段！",2,8);return false;
	}
	setTimeout(function(){$('.myform').submit()},0);
	layer.closeAll();
}
function isxs(){
	var xtype=$("#xtype").attr("checked");
	var days=$.trim($("input[name='xsdays']").val());  
	layer.closeAll();
	if(xtype=="checked"){
		layer.confirm("确定取消该职位置顶？",function(){setTimeout(function(){$('.xssubmit').submit()},0);layer.load('执行中，请稍候...',0);},function(){layer.closeAll();});
	}else{
		if(days<1){ 
			layer.msg("置顶天数均不能为空！",2,8,function(){add_class('职位置顶','300','200','#infobox3','');});return false;
		}else{
			layer.confirm("是否确定为该职位增加"+days+"天置顶服务？",function(){setTimeout(function(){$('.xssubmit').submit()},0);layer.load('执行中，请稍候...',0);},function(){layer.closeAll();});
			
		} 
	}
}
function checkmove(){
	if($("#hy").val()==""){
		layer.msg("请选择行业类别！",2,8);return false;
	}
	if($("#job1_son").val()==""){
		layer.msg("请选择职位类别！",2,8);return false;
	}
}

</script>

</head>
<style>
    .com_tit {
        width: 100%;
        padding: 20px 0;
    }
    .com_tit .com_tit_span {
        font-size: 16px;
        color: #666;
        font-weight: bold;
        display: inline-block;
        padding-left: 20px;
        margin-right: 10px;
    }
</style>
<body class="body_ifm">
<!--<div class="com_tit"><span class="com_tit_span">职位管理—职位列表</span></div>-->
<div id="export" style="display:none;">
  <div class="" style=" margin-top:10px; "  >
    <div>
      <form action="index.php?m=admin_company_job&c=xls" target="supportiframe" method="post" id="formstatus" class="myform1">
        <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
        <input type="hidden" name="keyword" value="{yun:}$wheres{/yun}">
        <input type="hidden" name="status" value="{yun:}$status{/yun}">
        <input name="pid" value="0" type="hidden">
        <div class="admin_resume_dc">
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="id">
            职位ID</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="uid">
            企业UID</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="name">
            职位名称</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="hy">
            行业</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="job1">
            一级类别</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="job1_son">
            二级类别</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="job_post">
            三级类别</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="provinceid">
            省</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="cityid">
            市</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="three_cityid">
            县</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="minsalary,maxsalary">
            薪水</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="number">
            招聘人数</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="exp">
            工作经验</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="report">
            到岗时间</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="sex">
            性别要求</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="edu">
            教育程度</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="marriage">
            婚姻状况</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="sdate">
            开始日期</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="lastdate">
            更新时间</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="age">
            年龄要求</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="lang">
            语言要求</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="welfare">
            福利待遇</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="com_name">
            公司名称</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="pr">
            公司性质</span></label>
          <label><span class="admin_resume_dc_s">
            <input type="checkbox" class="type" name="type[]" value="mun">
            企业规模</span></label>
        </div>
        <div class="admin_resume_dc_sub" style="margin-top:10px;">
          <input type="button" onClick="check_xls();"  value='确认' class="admin_resume_dc_bth1">
          <input type="button" onClick="layer.closeAll();" class="admin_resume_dc_bth2" value='取消'>
        </div>
      </form>
    </div>
  </div>
</div>

<div id="infobox5"  style="display:none;text-align:center;">
  <div class="admin_com_t_box">
    <form action="index.php?m=admin_company_job&c=urgent" target="supportiframe" method="post" id="formstatus">
      <input type="hidden" name="pytoken" id="pytoken" value="{yun:}$pytoken{/yun}">
      <input type="hidden" name="codeugent"/>
      <div class=" admin_com_smbox_list_pd"> <span class="admin_com_smbox_span">紧急天数：</span>
        <input class="admin_com_smbox_text" value="" name="addday"  onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')">
        <span class="admin_com_smbox_list_s">天</span> </div>
      <div class="eurgentdiv" style="display:none"> <span class="admin_com_smbox_span">当前结束日期：</span> <span class="admin_com_smbox_list_s eurgent" style="color:#f60"></span> </div>
      <div class="admin_com_smbox_qx_box"> 如需取消紧急职位请单击
        <input type="checkbox" name="s" value="1">
        点击确认即可</div>
      <div class="clear"></div>
      <div class="admin_com_smbox_opt admin_com_smbox_opt_mt">
        <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
        <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx"  value='取消'>
      </div>
      <input name="pid" value="0" type="hidden">
      <input name="eid" value="0" type="hidden">
    </form>
  </div>
</div>

<div id="infobox6"  style="display:none;">
  <div class="admin_com_t_box">
    <form action="index.php?m=admin_company_job&c=recommend" target="supportiframe" method="post" id="formstatus">
      <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
      <input type="hidden" name="codearr">
      <div class=" admin_com_smbox_list_pd"> <span class="admin_com_smbox_span">推荐天数：</span>
        <input class="admin_com_smbox_text" value="" name="addday" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')">
        <span class="admin_com_smbox_list_s">天</span> </div>
      <div class="edatediv" style="display:none"> <span class="admin_com_smbox_span">当前结束日期：</span> <span class="admin_com_smbox_list_s edate" style="color:#f60"></span> </div>
      <div class="admin_com_smbox_qx_box"> 如需取消推荐职位请单击
        <input type="checkbox" name="s" value="1">
        点击确认即可 </div>
      <div class="clear"></div>
      <div class="admin_com_smbox_opt admin_com_smbox_opt_mt">
        <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
        <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
      </div>
      <input name="pid" value="0" type="hidden">
      <input name="eid" value="0" type="hidden">
    </form>
  </div>
</div>

<div id="status_div"  style="display:none; width: 390px; ">
  <form action="index.php?m=admin_company_job&c=status" target="supportiframe" method="post" id="formstatus" name="myform" class="layui-form">
    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
    <table cellspacing='1' cellpadding='1' class="admin_examine_table">
      <tr>
        <th width="80">审核操作：</th>
        <td align="left"><div class="layui-form-item">
            <div class="layui-input-block">
              <input name="status" id="status0" value="0" title="未审核" type="radio"/>
              <input name="status" id="status1" value="1" title="正常" type="radio"/>
              <input name="status" id="status3" value="3" title="未通过" type="radio"/>
            </div>
          </div></td>
      </tr>
      <tr>
        <th>审核说明：</th>
        <td align="left"><textarea id="alertcontent" name="statusbody"class="admin_explain_textarea"></textarea></td>
      </tr>
      <tr>
        <td colspan='2' align="center"><div class="admin_Operating_sub">
            <input name="pid" value="0" type="hidden">
            <input type="submit" onclick="loadlayer();" value='确认' class="admin_examine_bth">
            <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
          </div></td>
      </tr>
    </table>
  </form>
</div>

<div id="infobox3" style="display:none;text-align:center;margin-top:20px">
  <form action="index.php?m=admin_company_job&c=xuanshang" target="supportiframe" method="post" id="formstatus" class="xssubmit">
    <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
    <div class=" admin_com_smbox_list_b"> <span class="admin_com_smbox_span">置顶天数：</span>
      <input class="admin_com_smbox_text admin_com_smbox_text_w130" value="" name="xsdays" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')">
      <span class="admin_com_smbox_list_s">天</span> </div>
    <div class="xsdiv" style="display:none"> <span class="admin_com_smbox_span">当前结束日期：</span> <span class="admin_com_smbox_list_s xsdate" style="color:#f60"></span> </div>
    <div class="admin_com_smbox_qx_box" style="width:300px;"> 如需取消职位置顶请单击
      <input type="checkbox" id="xtype" name="s" value="1">
      点击确认即可 </div>
    <div class="admin_com_smbox_opt admin_com_smbox_opt_mt" style="width:300px;">
      <input type="button" onclick="isxs();" value='确认'  class="admin_examine_bth">
      <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
    </div>
    <input name="pid" value="0" type="hidden">
  </form>
</div>

<div id="infobox2" style="display:none;">
  <div class="admin_com_t_box">
    <form action="index.php?m=admin_company_job&c=ctime" target="supportiframe" method="post" id="formstatus">
      <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
      <div class="admin_com_smbox_list"><span class="admin_com_smbox_span">延长时间：</span>
        <input class="admin_com_smbox_text" value="" name="endtime" onKeyUp="this.value=this.value.replace(/[^0-9]/g,'')">
        <span class="admin_com_smbox_list_s">天</span> </div>
      <div class="admin_com_smbox_opt">
        <input type="submit"  onclick="loadlayer();" value='确认' class="admin_examine_bth">
        <input type="button"  onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
      </div>
      <input name="jobid" value="0" type="hidden">
    </form>
  </div>
</div>

<div id="infobox4" style="display:none;">
  <div class="admin_com_t_box_hy">
    <form action="index.php?m=admin_company_job&c=saveclass" target="supportiframe" method="post" id="formstatus" onSubmit="return checkmove();">
      <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
      <div class="admin_com_select_list"> <span class="admin_com_smbox_span">行业类别：</span>
        <div class="admin_com_smbox_select_box">
          <select name="hy" id="hy" class="admin_com_smbox_select">
            <option value="">--选择大类--</option>
            
					{yun:}foreach item=v from=$industry_index{/yun} 
					
            <option value="{yun:}$v{/yun}">{yun:}$industry_name[$v]{/yun}</option>
            
					{yun:}/foreach{/yun}
				
          </select>
        </div>
      </div>
      <div class="admin_com_select_list"> <span class="admin_com_smbox_span">职位类别：</span>
        <div class="admin_com_smbox_select_box">
          <select name="job1" id="job1"  class="admin_com_smbox_select job1" lid="job1_son" >
            <option value="">--请选择--</option>
             
				{yun:}foreach from=$job_index key=j item=v{/yun}
				
            <option value='{yun:}$v{/yun}'>{yun:}$job_name[$v]{/yun}</option>
            
				{yun:}/foreach{/yun} 
			
          </select>
          <select name="job1_son" id="job1_son" class="admin_com_smbox_select job1" lid="job1_son1" >
            <option value="">--请选择--</option>
          </select>
          <select name="job_post" id="job1_son1" class="admin_com_smbox_select" >
            <option value="">--请选择--</option>
          </select>
        </div>
      </div>
      <div class="admin_com_smbox_opt admin_com_smbox_opt_mt">
        <input type="submit"  value='确认' class="admin_examine_bth">
        <input type="button" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
      </div>
      <input name="jobid" value="0" type="hidden">
    </form>
  </div>
</div>

<div class="infoboxp">
	<div class="admin_new_search_box">
		<form action="index.php" name="myform" method="get"  style="float:right;font-size: 14px;">
			<input type="hidden" name="m" value="admin_company_job"/>
			<input type="hidden" name="state" value="{yun:}$smarty.get.state{/yun}"/>
			<input type="hidden" name="job_type" value="{yun:}$smarty.get.job_type{/yun}"/>
			<input type="hidden" name="jtype" value="{yun:}$smarty.get.jtype{/yun}"/>
			<input type="hidden" name="salary" value="{yun:}$smarty.get.salary{/yun}"/>
            <input type="hidden" name="key" value="{yun:}$get_type.key{/yun}"/>
            <a href="index.php?m=jobadd&key={yun:}$get_type.key{/yun}" class="admin_new_cz_tj" style="float: left;">+发布职位</a>
            <input class="admin_button-red" type="button" name="delsub" value="删除" onClick="return really('del[]')"  style="float: left;margin-right: 5px;"/>
            <input class="admin_new_cz_tj" type="button" name="delsub" value="导出" onClick="Export();" style="float: left;margin-right: 10px" />
			<!--<div class="admin_new_search_name">搜索类型：</div>-->
			<input type="text" placeholder="输入你要搜索的关键字" name="keyword" class="admin_new_text">
			<input type="submit" name='news_search' value="搜索" class="admin_new_bth">
			<a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();"   class="admin_new_search_gj">高级搜索</a>
		</form>
		{yun:}include file="admin/admin_search.htm"{/yun} 
	</div>

	<div class="clear"></div>

	<div class="table-list">
		<div class="admin_table_border">
			<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
			<form action="index.php" name="myform" method="get" id='myform' target="supportiframe">
				<input name="m" value="admin_company_job" type="hidden"/>
				<input name="c" value="del" type="hidden"/>
				<table width="100%">
					<thead>
						<tr class="admin_table_top">
						<th style="width:20px;"> 
							<!--<label for="chkall"><input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/></label>-->
                            <label class="hiddeninputbox">
                                <input type="checkbox" class="hiddeninput" id='chkAll' onclick='CheckAll(this.form)'>
                                <span class="hiddeninput-span"></span>
                            </label>
						</th>
						<th>序号</th>
						<th>职位ID</th>
						<th>职位名称</th>
						<th width="210">企业名称</th>
						<th>招工类型</th>
						<th>职位状态</th>
						<th>投递</th>
						<th>更新时间</th>
						<th>推广</th>
						<th class="admin_table_th_bg">操作</th>
					</thead>

					<tbody>
						{yun:}foreach item=v key=key from=$rows{/yun}
							<tr align="center"  {yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.id{/yun}">
								<td>
								<!--<input type="checkbox" value="{yun:}$v.id{/yun}" class="check_all" name='del[]' onclick='unselectall()' rel="del_chk" />-->
                                    <label class="hiddeninputbox">
                                        <input type="checkbox" class="hiddeninput check_all"  value="{yun:}$v.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" />
                                        <span class="hiddeninput-span"></span>
                                    </label>
								</td>
                                <td class="td1" style="text-align:center;width:50px;"><span>{yun:}$key+1{/yun}</span></td>
								<td class="td1" style="text-align:center;width:50px;"><span>{yun:}$v.id{/yun}</span></td>
								<td>
									<div class=""> 
										{yun:}$v.name{/yun}
									</div>
								</td>
								<td class="ud" align="center" width="210">
									<div class="admin_job_comname">
										{yun:}$v.com_name{/yun}
									</div>
								</td>
								<td class="td" align="center">
                                    <div class="admin_new_t_j"> {yun:}$v.job_name{/yun}</div>
								</td>
                                <td id="state{yun:}$v.id{/yun}">
                                    {yun:}if $v.status==1{/yun}
                                    <!--<span class="admin_com_Lock" onclick="checkstate('{yun:}$v.id{/yun}','2');">已下架</span>-->
                                    <span class="admin_com_noAudited">已下架</span>
                                    {yun:}else{/yun}
                                    <!--<span class="admin_com_Audited"  onclick="checkstate('{yun:}$v.id{/yun}','1');">发布中</span>-->
                                    <span class="admin_com_Audited">发布中</span>
                                    {yun:}/if{/yun}

                                </td>
                                <td>
                                    <a href="index.php?m=jobadd&c=showMemberList&id={yun:}$v.id{/yun}" target="_blank" class="admin_cz_sc">{yun:}$v.jobhits{/yun}</a>
                                </td>
                                <td class="td" align="center"><div class="mt8">{yun:}$v.sdate|date_format:"%Y-%m-%d"{/yun}</div></td>
								<td>
									<div class="admin_new_t_j">
										置顶： <a href="javascript:void(0);"  pid="{yun:}$v.id{/yun}" xstime="{yun:}$v.xstime{/yun}" eid="{yun:}$v.xsdate{/yun}" class="admin_new_tg {yun:}if $v.xsdate>time(){/yun}admin_new_tg_cur{yun:}/if{/yun} xuanshang"></a> 
									</div>
								</td>

								<td>
									<!--<div class="admin_new_bth_c"> -->
										<!--<a href="javascript:;"pid="{yun:}$v.id{/yun}" status='{yun:}$v.state{/yun}' class="admin_new_c_bth admin_new_c_bthsh status" >查看</a>-->
										<!--<a href="index.php?m=admin_company_job&c=matching&id={yun:}$v.id{/yun}" class="admin_new_c_bth admin_new_c_bth_pp">下架</a>-->
									<!--</div>-->
									
									<div class="admin_new_bth_c"> 
										<!--<a href="index.php?m=jobadd&c=show&id={yun:}$v.id{/yun}" class="admin_new_c_bth ">修改</a>-->
                                        <input type="hidden" name="state" value="{yun:}$v.status{/yun}" id="change{yun:}$v.id{/yun}">
                                        <a href="#" class="admin_text_bth" onclick="checkstate({yun:}$v.id{/yun})">更改状态</a>
										<a href="index.php?m=jobadd&c=edit&id={yun:}$v.id{/yun}&key={yun:}$get_type.key{/yun}&page={yun:}$page{/yun}" class="admin_text_bth " >修改</a>
										<a href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=admin_company_job&c=del&id={yun:}$v.id{/yun}');" class="admin_text_bth">删除</a>
									</div>
								</td>
							</tr>
						{yun:}/foreach{/yun}
						<!--<tr>-->
							<!--&lt;!&ndash;<td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)'/></td>&ndash;&gt;-->
							<!--&lt;!&ndash;<td colspan="5" >&ndash;&gt;-->
								<!--&lt;!&ndash;<label for="chkAll2">全选</label>&ndash;&gt;-->
								<!--&lt;!&ndash;<input class="admin_button" type="button" name="delsub" value="推荐" onClick="recommend();" />&ndash;&gt;-->
								<!--&lt;!&ndash;<input class="admin_button" type="button" name="delsub" value="导出" onClick="Export();" />&ndash;&gt;-->
								<!--&lt;!&ndash;<input class="admin_button" type="button" name="delsub" value="删除" onClick="return really('del[]')" />&ndash;&gt;-->
							<!--&lt;!&ndash;</td>&ndash;&gt;-->
							<!--<td colspan="13" class="digg">{yun:}$pagenav{/yun}</td>-->
						<!--</tr>-->
					</tbody>
				</table>
                <div class="diggbox">
                    <div  class="digg">{yun:}$pagenav{/yun}</div>
                </div>
				<input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
			</form>
		</div>
	</div>
</div>

<script>
layui.use(['layer', 'form'], function(){
	var layer = layui.layer
		,form = layui.form
		,$ = layui.$;
});
$(document).ready(function(){
	$(".job1").change(function(){
		var job=$(this).val();
		var lid=$(this).attr("lid");
		if(job==""){
			$("#"+lid+" option").remove()
			$("<option value=''>--请选择--</option>").appendTo("#"+lid);
		}
		lid2=$("#"+lid).attr("lid");
		if(lid2){
			$("#"+lid2+" option").remove();
			$("<option value=''>--请选择--</option>").appendTo("#"+lid2);
		}
		$.post(weburl+"/index.php?m=ajax&c=ajax_job", {"str":job},function(data) {
			if(lid!="" && data!=""){
				$('#'+lid+' option').remove();
				$(data).appendTo("#"+lid);
			}
		})
	})
})
</script>
</body>
</html>